from google.appengine.ext import db

'''Hierachy: Category/Buzz/Tweet'''
class Category(db.Model):
    term = db.StringProperty()
    geoLoc = db.StringProperty()


class Buzz(db.Model):
    category_id = db.StringProperty()
    buzz_id = db.StringProperty()
    term = db.StringProperty()
    sentiment = db.StringProperty()


class Tweet(db.Model):
    buzz_id = db.StringProperty()
    text = db.TextProperty()
    from_user = db.StringProperty()
    from_user_name = db.StringProperty()
    created_at = db.StringProperty()
    location = db.StringProperty()
    profile_image_url = db.StringProperty()